{extend name="layout/iframe" /}

{block name="content"}
<div class="layui-anim layui-anim-up">
    <div class="x-nav">
    <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">店铺订单</a>
        <a><cite>店铺订单列表</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i>
    </a>
    </div>
    <div class="x-body">
        <div class="layui-row">
            <form class="layui-form layui-col-md12 x-so" method="get">
                <input class="layui-input" placeholder="开始日" name="begin_time" id="start" value="{$formget.begin_time ?: ''}">
                <input class="layui-input" placeholder="截止日" name="end_time" id="end" value="{$formget.end_time ?: ''}">
                <input type="text" name="name" placeholder="请输入店铺名" autocomplete="off" class="layui-input" value="{$formget.name ?: ''}">

                <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                <a href="{:url('admin/storeorder/getlist')}" class="layui-btn layui-btn-danger"><i class="icon iconfont"></i></a>
            </form>
        </div>
        <div>
            <span class="x-right" style="line-height:40px">共有数据：{$total} 条</span>
        </div>
        <table class="layui-table">
            <thead>
            <tr>
                <th>交易单号</th>
                <th>交易时间</th>
                <th>交易金额</th>
                <th>订单来源</th>
                <th>支付方式</th>
                <th>店铺</th>
                <th>支付人</th>
                <!--<th>操作</th>-->
            </tr>
            </thead>
            <tbody>
            {volist name="datas" id="vo"}
            <tr>
                <td>{$vo.orderNo}</td>
                <td>{$vo.payTime}</td>
                <td>¥&nbsp;{$vo.payMoney}</td>
                <td>{if $vo.orderSource==1}购买优惠券{elseif $vo.orderSource==2}当面付{/if}</td>
                <td>{if $vo.payType==0}微信支付{elseif $vo.payType==1}支付宝{elseif $vo.payType==3}余额支付{/if}</td>
                <td>{$vo.name}</td>
                <td>{$vo.userName}</td>
                <!--<td class="td-manage">
                    <a title="删除" onclick="handle_del(this,'{$vo.id}')" href="javascript:;">
                        <i class="layui-icon">&#xe640;</i>
                    </a>
                </td>-->
            </tr>
            {/volist}
            </tbody>
        </table>

        <div class="page">
            <div>
                {$datas->render()}
            </div>
        </div>

    </div>

    <script>
        var delete_url = "{:url('admin/storeorder/del')}";
    </script>
    <script src="__STATIC__/admin/pages/js/common.js" type="text/javascript"></script>
    <script src="__STATIC__/admin/pages/js/storeorder.js" type="text/javascript"></script>

</div>
{/block}